#ifndef BUFFER_H_
#define BUFFER_H_

class Buffer {
    static const char blank_char = 0;
    static const int frame_size = 15;
    static const int buffer_size = 30;
    static const int out_frame_size = 10;

	int sequenceNumber;
	int timeStamp;
	
	char array[buffer_size];
	int begin;
	int end;

public:
    Buffer();
    
    inline static int MsToBytes(int ms) { return ms; }
    inline static int BytesToMs(int bs) { return bs; }
    
    inline bool Put(int ts, void * data, int datalen);
    inline bool Get(int & seqno, int & ts, void * data, int & datalen);
};

#endif // BUFFER_H_
